<template>
  <div class="el-page-header">
    <div class="el-page-header__left" @click="$emit('back')" v-if="showBack"> 
      <i class="el-icon-back" v-if="showBack"></i>
      <div class="el-page-header__title">
        <slot name="title">{{ title }}</slot>
      </div>
    </div>
    <div class="el-page-header__content">
      <slot name="content">{{ content }}</slot>
    </div>
  </div>
</template>

<script>
import { PageHeader } from 'element-ui'
export default {
  extends: PageHeader,
  props: {
    showBack: {
      type: Boolean,
      default: true
    }
  }
}
</script>
